package com.clickpaas.workinghours.service;

import com.bizcloud.ipaas.tbba4bf83484b4ed2aacba581fbfeac4d.  d20210220155135.model.TimeCardDTO;
import com.bizcloud.ipaas.tbba4bf83484b4ed2aacba581fbfeac4d.  d20210220155135.model.TimeCardSaveOrUpdateDataResponseObject;
import com.clickpaas.workinghours.entity.TimeCardEntity;

import java.util.List;
import java.util.Map;

public interface TimeCardService {

    /**
     * 获取数据
     * @return
     */
    public List<TimeCardDTO> getDataInfo(TimeCardEntity Entity);

    /**
     * 数据转换为bean
     * @return
     */
    public List<TimeCardEntity> DataConver(List<TimeCardDTO> list);

    /**
     * 工时填报数据入库
     * @return
     */
    public TimeCardSaveOrUpdateDataResponseObject insertDataInfo(TimeCardEntity entity);

    /**
     * 工时填报数据更新
     * @return
     */
    public TimeCardSaveOrUpdateDataResponseObject updateDataInfo(TimeCardEntity query,TimeCardEntity update);

    /**
     * 工时填报数据删除
     * @return
     */
    public boolean deleteDataInfo(TimeCardEntity delete);


    /**
     * 工时填报主数据查询
     * @return
     */
    public Map<Object, Object> getTimeCardMainData(String token);
}
